/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package nl.hva.web.mvcwebapp.classes;

import java.util.ArrayList;

/**
 *
 * @author Thijs
 */
public class UserClass {

    public static ArrayList usertypes = new ArrayList();

    public UserClass() {
        usertypes = addUsertypes();
    }

    public static String getUsertypeString(int usertype) {
        String usertype_string = "";
        switch (usertype) {
            case 1:
                usertype_string = "Student";
                break;
            case 2:
                usertype_string = "Teacher";
                break;
            case 3:
                usertype_string = "Administrator";
                break;
        }
        return usertype_string;
    }

    public ArrayList addUsertypes() {
        ArrayList usertypes = new ArrayList();
        usertypes.add("Student");
        usertypes.add("Teacher");
        usertypes.add("Administrator");
        return usertypes;
    }
    public static ArrayList getUsertypes(){
        return usertypes;
    }
}
